package coffee.tigase.client;

import org.jivesoftware.smack.XMPPConnection;

import coffee.tigase.constant.XMPPConfig;
/**
 * 
 * @author coffee
 *
 * 2012-10-30下午1:40:01
 */
public class XMPPConnectionFactory {
	/**
	 * 创建一个一个新的 xmpp connection {@link org.jivesoftware.smack.Connection}
	 * 
	 * @return
	 */
	public static XMPPConnection create() {
		XMPPConnection connection = null;
		try {
			connection = new XMPPConnection(XMPPConfig.HOST);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return connection;
	}
}
